function Mcell = ch2music_type(M0cell,tones,l)
for k=1:length(M0cell)
    Mcell{k} = ch2music_type_one(M0cell{k},tones,l);
end

end

function M = ch2music_type_one(M0,tones,l) % M0 is the output of the file_fetch, and just one track (three lines)
% M(1) = tones(M0(1,:)).*2^M0(2);  
% M(2) = M0(3,:).*l; 
M = [tones(M0(1,:)).*2.^M0(2,:);...   % change num to frequence  % music
    M0(3,:).*l];                    % the beat
end
